package com.bank.dao.impl;

import com.bank.dao.Interface.BankCardDao;
import com.bank.dao.DBUtil;
import com.bank.model.BankCard;

public class BankCardDaoImpl extends DBUtil implements BankCardDao {
    @Override
    public void addUser(BankCard bankCard) {
        String sql="INSERT INTO tb_bankcard(card_id,bank_id,count) VALUES(?,?,?);";
        super.executeUpdate(sql,bankCard.getCard_id(),bankCard.getBank_id(),bankCard.getCount());
    }
}
